package com.qingke.service.impl;

import javax.annotation.Resource;


import org.springframework.stereotype.Service;

import com.qingke.mapper.JurisdictionMapper;
import com.qingke.pojo.Jurisdiction;
import com.qingke.service.JurisdictionService;

@Service("jurisdictionService")
public class JurisdictionServiceImpl implements JurisdictionService {
    @Resource
	private JurisdictionMapper jdDao;
	
	public Jurisdiction getJurisdictionById(int id) {
		return  jdDao.selectByPrimaryKey(id);
	}

	public Jurisdiction getJurisdictionByName(String name) {
		return  jdDao.selectByName(name);
	}

}
